<!--评论输入弹窗-->
<template>
  <custom-BasicPopup
    ref="popup"
    @change="change"
    type="bottom"
    @onChange="onChange"
  >
    <view class="evaluateInputPop">
      <view class="flex-row-align-center">
        <view class="input-con flex">
          <input
            v-model="evaluateContent"
            class="evaluate-input"
            auto-height
            :focus="focus"
            :hold-keyboard="true"
            @focus="handleFocus"
            @blur="handleLoseFocus"
            :adjust-position="false"
            placeholder="说点什么吧..."
            placeholder-class="color-999"
            confirm-type="send"
            @confirm="handleSend"
          />

          <img
            class="evaluate-pic"
            @tap="handleMedia"
            src="https://ltcx-img.oss-cn-beijing.aliyuncs.com/miniprogram/touristGroup/album.png"
          />
        </view>
        <view v-if="systemName != 'ios'" class="send-btn" @tap="handleSend">
          发送
        </view>
      </view>
      <view class="img-wrap" v-if="evaluatePic">
        <image
          class="delete"
          @tap="handleDelete"
          src="https://ltcx-img.oss-cn-beijing.aliyuncs.com/miniprogram/common/delete.png"
        />
        <image :src="evaluatePic" mode="aspectFit" />
      </view>
      <!-- <view class="evaluate-wrap">
        <input
          v-model="evaluateContent"
          class="evaluate-area"
          auto-height
          :focus="focus"
          :hold-keyboard="true"
          @focus="handleFocus"
          @blur="handleLoseFocus"
          :adjust-position="false"
          :show-confirm-bar="false"
        /> -->
      <!-- https://ltcx-img.oss-cn-beijing.aliyuncs.com/miniprogram/touristGroup/album.png -->
      <!-- <view class="img-wrap" v-if="evaluatePic">
          <image
            class="delete"
            @tap="handleDelete"
            src="https://ltcx-img.oss-cn-beijing.aliyuncs.com/miniprogram/common/delete.png"
          />
          <image :src="evaluatePic" mode="aspectFit" />
        </view>
      </view> -->
      <!-- <view class="between-item-center-row margin-b-tr">
        <img
          class="evaluate-pic"
          src="http://ltcx-img.oss-cn-beijing.aliyuncs.com/miniprogram/travelLogue/evaluatePic.png"
          @tap="handleMedia"
        />
        <view class="send" @tap="handleSend">发送</view>
      </view> -->
      <view :style="{ 'min-height': keyboardHeight + 'px' }"></view>
    </view>
  </custom-BasicPopup>
</template>
<script src="./indexMod.js"></script>
<style src="./indexStyle.scss"></style>